﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using GrayParrot.ServiceBroker;

namespace TestServiceBroker
{
    public class TestServiceBrokerSubscriber : Subscriber<TestServiceBrokerSubscriber> 
    {
        public TestServiceBrokerSubscriber()
            : base("feeds")
        {

        }

        public override void Receive(string message)
        {
            Console.WriteLine(message);

            Thread.Sleep(10000);

            //throw new Exception("Prova di errore");
        }
    }
}
